// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './inter-func-form-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizbookid', 'ibizbookname', 'author', 'press', 'price', 'type', 'booknumber', 'icon', 'lendouttime', 'returntime', 'subtext', 'createman', 'createdate', 'updateman', 'updatedate'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizbookid;
    }
    set srfkey(value: any) {
        this.$DO.ibizbookid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizbookname;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizbookname = value;
    }
    get ibizbookid() {
        return this.$DO.ibizbookid;
    }
    set ibizbookid(value: any) {
        this.$DO.ibizbookid = value;
    }
    get ibizbookname() {
        return this.$DO.ibizbookname;
    }
    set ibizbookname(value: any) {
        this.$DO.ibizbookname = value;
    }
    get author() {
        return this.$DO.author;
    }
    set author(value: any) {
        this.$DO.author = value;
    }
    get press() {
        return this.$DO.press;
    }
    set press(value: any) {
        this.$DO.press = value;
    }
    get price() {
        return this.$DO.price;
    }
    set price(value: any) {
        this.$DO.price = value;
    }
    get type() {
        return this.$DO.type;
    }
    set type(value: any) {
        this.$DO.type = value;
    }
    get booknumber() {
        return this.$DO.booknumber;
    }
    set booknumber(value: any) {
        this.$DO.booknumber = value;
    }
    get icon() {
        return this.$DO.icon;
    }
    set icon(value: any) {
        this.$DO.icon = value;
    }
    get lendouttime() {
        return this.$DO.lendouttime;
    }
    set lendouttime(value: any) {
        this.$DO.lendouttime = value;
    }
    get returntime() {
        return this.$DO.returntime;
    }
    set returntime(value: any) {
        this.$DO.returntime = value;
    }
    get subtext() {
        return this.$DO.subtext;
    }
    set subtext(value: any) {
        this.$DO.subtext = value;
    }
    get createman() {
        return this.$DO.createman;
    }
    set createman(value: any) {
        this.$DO.createman = value;
    }
    get createdate() {
        return this.$DO.createdate;
    }
    set createdate(value: any) {
        this.$DO.createdate = value;
    }
    get updateman() {
        return this.$DO.updateman;
    }
    set updateman(value: any) {
        this.$DO.updateman = value;
    }
    get updatedate() {
        return this.$DO.updatedate;
    }
    set updatedate(value: any) {
        this.$DO.updatedate = value;
    }
    // 界面主键标识
    get ibizbook() {
        return this.$DO.ibizbookid;
    }

    set ibizbook(value: any) {
        this.$DO.ibizbookid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizbookid: this.$DO.ibizbookid,
ibizbookname: this.$DO.ibizbookname,
author: this.$DO.author,
press: this.$DO.press,
price: this.$DO.price,
type: this.$DO.type,
booknumber: this.$DO.booknumber,
icon: this.$DO.icon,
lendouttime: this.$DO.lendouttime,
returntime: this.$DO.returntime,
subtext: this.$DO.subtext,
createman: this.$DO.createman,
createdate: this.$DO.createdate,
updateman: this.$DO.updateman,
updatedate: this.$DO.updatedate,
        }
	}

}